export const permission = {
  mounted(el, binding) {
    const permissionStore = usePermissionStore()
    if (!permissionStore.hasPermission(binding.value)) {
      el.parentNode?.removeChild(el)
    }
  }
}
